import { createApp } from 'vue'
import App from './App.vue'
import Vant from 'vant';
import * as VueRouter from 'vue-router';
import routes from './config/route';
import 'vant/lib/index.css';

const router = VueRouter.createRouter({
    history: VueRouter.createWebHistory(),
    routes, //'routes:routes' 的缩写
});

const app = createApp(App);
app.use(Vant);
app.use(router);
app.mount('#app');
